import ruleUpgrader from "./modules/rule/creep/ruleUpgrader"
import ruleFreeman from "./modules/rule/creep/ruleFreeman"
import ruleCarrier from "./modules/rule/creep/ruleCarrier"
import ruleBuilder from "./modules/rule/creep/ruleBuilder"
import ruleRepaire from "./modules/rule/creep/ruleRepaire"
import ruleHarvester from "./modules/rule/creep/ruleHarvester"
import ruleWallRepairer from "./modules/rule/creep/ruleWallRepairer"


// #region 任务管理器
const taskType = {
    spawnCreep: 'spawnCreep',
    needResource: 'needResource',
    build: 'build',
    repaire: 'repaire',
}
// #endregion

// #region creep角色
const creepRoleEnum = {
    worker: {
        upgrader: 'upgrader',
        harvester: 'harvester',
        freeman: 'freeman',
        wallRepairer: 'wallRepairer',
    },
    soldier: {
        soldier: 'soldier'
    }
}
const creepBodyEnum = {
    freeman: [WORK, CARRY, CARRY, MOVE, MOVE],
    upgrader: [WORK, CARRY, MOVE, MOVE],
    harvester: [WORK, WORK, CARRY, MOVE, MOVE],
    soldier: [ATTACK, ATTACK, TOUGH, TOUGH, TOUGH, TOUGH, MOVE, MOVE, MOVE, MOVE, MOVE, MOVE],
    wallRepairer: [WORK, CARRY, MOVE, MOVE],
}
const creepRuleNameEnum = {
    ruleUpgrader: 'ruleUpgrader',
    ruleFreeman: 'ruleFreeman',
    ruleCarrier: 'ruleCarrier',
    ruleBuilder: 'ruleBuilder',
    ruleRepaire: 'ruleRepaire',
    ruleHarvester: 'ruleHarvester',
    ruleWallRepairer: 'ruleWallRepairer',
}
const creepRuleEnum = {
    ruleUpgrader: ruleUpgrader,
    ruleFreeman: ruleFreeman,
    ruleCarrier: ruleCarrier,
    ruleBuilder: ruleBuilder,
    ruleRepaire: ruleRepaire,
    ruleHarvester: ruleHarvester,
    ruleWallRepairer: ruleWallRepairer,
}
// #endregion


// #region 纳建筑物统计表中的建筑类型
const structureEnum = {
    source: 'source',
    spawn: STRUCTURE_SPAWN,
    controller: STRUCTURE_CONTROLLER,
    road: STRUCTURE_ROAD,
}
// #endregion

export {
    taskType,
    creepRoleEnum,
    creepBodyEnum,
    creepRuleNameEnum,
    creepRuleEnum,
    structureEnum,
}